﻿/*
https://dian.ysbang.cn/#/login?redirect=%2F
登录参数ex1
 */
function P(e) {
    for (var t = [], n = function () {
        for (var e = [], t = 0; t < 36; t++)
            t >= 0 && t <= 9 ? e.push(t) : e.push(String.fromCharCode(t + 87));
        return e
    }(); e;) {
        var a = e % 36;
        t.unshift(n[a]),
            e = parseInt(e / 36)
    }
    return t.join("")
};

function O() {
    var e = String(parseInt((new Date).getTime()) + 0)
    for (var t = "9527".split("").map((function (e) {
            return Number(e)
        }
    )), n = e.split("").map((function (e) {
            return Number(e)
        }
    )), a = 7 * n.reduce((function (e, t) {
            return e + t
        }
    ), 0) % 10, r = [], o = 0, i = 0; i < n.length; i++)
        r[i] = (n[i] + t[o]) % 10,
            o = (o + 1) % t.length;
    for (var c = t.length % n.length, s = Array.apply(null, {
        length: 10
    }), l = 0; l < c; l++)
        s[l] = r[r.length - l - 1];
    s[c] = a;
    for (var d = c + 1; d < r.length + 1; d++)
        s[d] = r[r.length - d];
    return P(s.join(""))
};
console.log(O())